.mi-timepicker-dropdown-main {
  background-color: rgba(255, 255, 255, 1);
  .border-radius(3px);
  // width: 570px;
  .box-shadow(0 2px 5px 1px rgba(0,0,0,.2));
  padding: 15px;
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 999;
  &:after {
    content: '';
    display: inline-block;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.98);
    position: absolute;
    top: -6px;
    right: 20px;
  }
  ul {
    height: 58px;
    overflow: hidden;
    text-align: center;
    li {
      display: inline-block;
      background-color: #edeef0;
      color: #333;
      padding: 3px 12px;
      margin-bottom: 8px;
      cursor: pointer;
      .border-radius(3px);
      white-space: nowrap;
      text-align: center;
      width: 40px;
      height: 40px;
      line-height: 40px;
      margin: 5px;
      span {
        display: block;
      }
      &.active,
      &:hover {
        background: #999999;
        color: #fff;
      }
    }
  }
  .timepicker-main {
    overflow: hidden;
    padding: 15px 6px;
    color: #555;
  }
  .timepicker-diy {
    // float: right;
    width: 270px;
    line-height: 1;
    div.wrapper {
      border: 1px solid #ddd;
      border-radius: 3px;
      padding: 20px 10px 5px;
      margin-bottom: 20px;
      background: #fff;
      &:last-child {
        margin-bottom: 0;
      }
    }
    p {
      margin-bottom: 20px;
      span {
        color: #555;
      }
      .slider-handle {
        margin-left: 0;
      }
      select {
        color: #555;
        margin-top: 10px;
      }
    }
    &.timepicker-diy-left{
      float: left;
    }
    &.timepicker-diy-right{
      float: right;
    }
  }
  .calendar-date {
    float: left;
    width: 260px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 3px;
  }
  .table-condensed {
    table-layout: fixed;
    width: 100%;
    th,
    td {
      height: 20px;
      line-height: 20px;
      padding: 5px 2px;
      color: #555;
      white-space: nowrap;
      text-align: center;
    }
    th {
      font-weight: bold;
      .arrow {
        display: block;
        font-size: 12px;
        &:hover {
          background-color: #ebf4f8;
          cursor: pointer;
        }
      }
    }
    td {
      .border-radius(3px);
      cursor: pointer;
      &:hover {
        background-color: #ebf4f8;
      }
      &.disabled {
        color: #ddd;
        cursor: default;
        &:hover {
          background-color: #fff;
        }
      }
      &.active {
        background-color: #3498db;
        color: #fff;
      }
    }
  }
  .timepicker-footer {
    clear: both;
    color: #555;
    text-align: right;
    margin: 0 -15px;
    margin-bottom: -15px;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    padding: 15px;
    .border-bottom-left-radius(3px);
    .border-bottom-right-radius(3px);
    button {
      margin-left: 10px;
      margin-right: 5px;
    }
  }
}

.mi-timepicker-dropdown-main-enhanced {
  .mi-timepicker-dropdown-main;
  left: 0;
  right: auto;
  // margin: 0 -275px;
  ul {
    text-align: left;
    &.switch-tab-container {
      height: auto;
      margin-bottom: 15px;
    }
    li {
      width: auto;
      padding: 3px 12px !important;
    }
    .switch-tab {
      margin: auto 0px;
      color: rgb(153,153,153);
      background-color: rgba(255,255,255,0);
      border-top-left-radius: 0px;
      border-top-right-radius: 0px;
      border-bottom-left-radius: 0px;
      border-bottom-right-radius: 0px;
      border-bottom: 2px solid rgb(153,153,153);
      // box-shadow: none;
      line-height: 25px;
      height: 25px;
      &.active {
        background-color: rgba(255,255,255,0);
        border-bottom: 2px solid rgb(0,136,204);
        color: rgb(0,136,204);
      }
      &:hover {
        background-color: rgba(255,255,255,0);
        color: rgb(0,136,204);
      }
    }
  }
  &:after {
    left: 36px;
    right: auto;
  }
}

.dialog {
  .dropdown.time-slider > strong {
    border: 1px solid #d5d5d5;
    background-color: #FFF;


    > .iconfont {
      color: #999;
    }

    > span {
      color: #333;
    }

    .mi-timepicker-dropdown-main-enhanced:after {
      display: none;
    }
  }
}

.dropdown.time-slider > strong > .icon-clock {
  top: 1px;
}

.date-picker-container {
  @font-color: #666666;
  color: @font-color;
  background-color: #FFFFFF;
  padding: 15px 15px 0px;

  &.timepicker-dropdown-main ul li {
    color: @font-color;

    &.active, &:hover {
      color: #FFFFFF;
    }

    &.active {
      cursor: default;
    }
  }

  .date-picker-customer {
    color: #666;
    margin: 0px auto;
    width: 570px;
    box-sizing: border-box;

    .calendar-date {
      float: none;
      display: inline-block;
    }

    .table-condensed td, th {
      color: @font-color;
      border-radius: 0px;

      &.disabled {
        color: #DDDDDD;
      }

      &.active {
        color: #FFFFFF;

        &.left {
          border-top-left-radius: 3px;
          border-bottom-left-radius: 3px;
        }

        &.right {
          border-top-right-radius: 3px;
          border-bottom-right-radius: 3px;
        }
      }
    }

    .Select-placeholder {
      color: #666;
    }

    .line {
      border-top: 1px solid #E5E5E5;
      display: block;
      margin: 5px auto 10px;
    }

    .time-row {
      position: relative;

      .date-displayer {
        display: inline-block;
        width: 108px;
        vertical-align: top;
        font-size: 14px;
        color: #666;
      }

      .Select {
        width: 70px;
        display: inline-block;

        &.is-disabled .Select-placeholder {
          color: #AAAAAA;
        }
      }

      .input-number {
        display: inline-block;
        width: 70px;
      }

      .spliter {
        display: inline-block;
        height: 34px;
        padding-top: 6px;
        text-align: center;
      }
    }
  } // .date-picker-customer

  .date-picker-footer {
    display: block;
    height: 65px;
    line-height: 65px;
    padding: 0px 15px;
    background-color: #F5F5F5;
    border-top: 1px solid #E5E5E5;
    margin: 15px -15px 0px -15px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;

    .text {
      display: inline-block;
    }

    .mlr10 {
      margin: auto 10px;
    }
  }
}
